package proxies.classes.user
{
	public class UserItem
	{		
		public var bwAvailLastMonth:String;
		public var bwQuota:String;
		public var bwQuotaAvailable:String;
		public var diskQuota:String;
		public var diskQuotaAvailable:String;
		public var friendsCount:int;
		public var name:String;
		public var sharedItems:int;
		public var sharedSpace:int;	
		
		public function UserItem(rawData:Object)
		{
			this.bwAvailLastMonth = rawData.bw_avail_last_month;
			this.bwQuota = rawData.bw_quota;
			this.bwQuotaAvailable = rawData.bw_quota_available;
			this.diskQuota = rawData.disk_quota;
			this.diskQuotaAvailable = rawData.disk_quota_available;
			this.friendsCount = rawData.friends_count;
			this.name = rawData.name;
			this.sharedItems = rawData.shared_items;
			this.sharedSpace = rawData.shared_space;
		}

		public function toString():String
		{
			return 'Bandwith available last month : '+bwAvailLastMonth+
				 '\nBandwith quota : '+bwQuota+
				 '\nBandwith quota available : '+bwQuotaAvailable+
				 '\nDisk quota : '+diskQuota+
				 '\nDisk quota available : '+diskQuotaAvailable+
				 '\nFriends count : '+friendsCount+
				 '\nName : '+name+
				 '\nShared items : '+sharedItems+
				 '\nShared space : '+sharedSpace;
		}
	}
}